package com.jintu.portal.pojo.dto;

import com.jintu.portal.pojo.entity.TDepartment;
import com.jintu.portal.utils.BeanUtils;

import java.io.Serializable;

/**
 * Created by junhu on 2017/9/25.
 */
public class DepartmentDto implements Serializable {

    private Long departmentId;//部门ID
    private String fullName;//部门全称
    private String shortName;//部门简称
    private Long parentId;//上级部门ID
    private Long departmentTypeId;
    private String departmentTypeName;
    private Integer isStore;//是否门店
    private Long companyId;//企业ID
    private String storePhone;//门店电话
    private String storeShopHour;//门店营业时间
    private String storeProvince;//门店所在省份
    private String storeCity;//门店所在城市
    private String storeDistrict;//门店所属区域
    private String storeAddress;//门店地址
    private Integer isUsed;//是否停用
    private Integer addType;//是否系统初始化 1系统初始化,2新增
    private String fullPath;//是否系统初始化 1系统初始化,2新增
    // 扩展字段
    private Integer employeeNum;//员工数量
    private String storeText;//是否门店中文，门店或者非门店

    private Long bankAccountId;   //收款账户ID

    public DepartmentDto(){
    }

    public DepartmentDto(TDepartment department) throws Exception {
        BeanUtils.copyProperties(department, this);
        this.departmentId = department.getId();
    }
    public Long getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Long departmentId) {
        this.departmentId = departmentId;
    }

    public String getFullName() {
        return fullName;
    }

    public void setFullName(String fullName) {
        this.fullName = fullName;
    }

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getDepartmentTypeId() {
        return departmentTypeId;
    }

    public void setDepartmentTypeId(Long departmentTypeId) {
        this.departmentTypeId = departmentTypeId;
    }

    public String getDepartmentTypeName() {
        return departmentTypeName;
    }

    public void setDepartmentTypeName(String departmentTypeName) {
        this.departmentTypeName = departmentTypeName;
    }

    public Integer getIsStore() {
        return isStore;
    }

    public void setIsStore(Integer isStore) {
        this.isStore = isStore;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public String getStorePhone() {
        return storePhone;
    }

    public void setStorePhone(String storePhone) {
        this.storePhone = storePhone;
    }

    public String getStoreShopHour() {
        return storeShopHour;
    }

    public void setStoreShopHour(String storeShopHour) {
        this.storeShopHour = storeShopHour;
    }

    public String getStoreProvince() {
        return storeProvince;
    }

    public void setStoreProvince(String storeProvince) {
        this.storeProvince = storeProvince;
    }

    public String getStoreCity() {
        return storeCity;
    }

    public void setStoreCity(String storeCity) {
        this.storeCity = storeCity;
    }

    public String getStoreDistrict() {
        return storeDistrict;
    }

    public void setStoreDistrict(String storeDistrict) {
        this.storeDistrict = storeDistrict;
    }

    public String getStoreAddress() {
        return storeAddress;
    }

    public void setStoreAddress(String storeAddress) {
        this.storeAddress = storeAddress;
    }

    public Integer getIsUsed() {
        return isUsed;
    }

    public void setIsUsed(Integer isUsed) {
        this.isUsed = isUsed;
    }

    public Integer getAddType() {
        return addType;
    }

    public void setAddType(Integer addType) {
        this.addType = addType;
    }

    public String getFullPath() {
        return fullPath;
    }

    public void setFullPath(String fullPath) {
        this.fullPath = fullPath;
    }

    public Integer getEmployeeNum() {
        return employeeNum;
    }

    public void setEmployeeNum(Integer employeeNum) {
        this.employeeNum = employeeNum;
    }

    public String getStoreText() {
        return storeText;
    }

    public void setStoreText(String storeText) {
        this.storeText = storeText;
    }

    public Long getBankAccountId() {
        return bankAccountId;
    }

    public void setBankAccountId(Long bankAccountId) {
        this.bankAccountId = bankAccountId;
    }
}
